//阉割版工单类型

export const WORKORDER_TYPES = [
  { label: "自定义工单", value: 1 },
  { label: "隐患上报", value: 4 }
];

//工单类型
export const WORKORDER_TYPE = [
  { label: "自定义工单", value: 1 },
  { label: "巡检工单", value: 2 },
  { label: "告警工单", value: 3 },
  { label: "隐患上报", value: 4 }
];
//工单类型
export const WORKORDER_TYPETEXT = {
  1: { label: "自定义工单", value: 1 },
  2: { label: "巡检工单", value: 2 },
  3: { label: "告警工单", value: 3 },
  4: { label: "隐患上报", value: 4 }
};

//工单状态
export const WORKORDER_STATUS = [
  { label: "发起中", value: 1 },
  { label: "进行中", value: 2 },
  { label: "已退回", value: 3 },
  { label: "已完成", value: 4 },
  { label: "已取消", value: 5 }
];
export const WORKORDER_STATUSTEXT = {
  1: { label: "发起中", value: 1,color: '#2064c1',type:'primary' },
  2: { label: "进行中", value: 2 ,color: '#c16d22',type:'danger' },
  3: { label: "已退回", value: 3, color: '#d22c2e' ,type:'warning' },
  4: { label: "已完成", value: 4, color: '#4cb61f',type:'success'  },
  5: { label: "已取消", value: 5, color: '#adadad' ,type:'info' }
};
//派发方式
export const WORKORDER_DISPATCH_TYPE = [
  { label: "按流程", value: 1 },
  { label: "指定人员", value: 2 }
];
export const WORKORDER_DISPATCH_TYPETEXT = {
  1: { label: "按流程", value: 1 },
  2: { label: "指定人员", value: 2 }
};
//处理结果
export const WORKORDER_RESULT = [
  { label: "通过", value: 1 },
  { label: "退回", value: 2 }
];
export const WORKORDER_RESULTTEXT ={
  1:{ label: "通过", value: 1 },
  2:{ label: "退回", value: 2 }
};
//通知方式
export const WORKORDER_NOTICE_TYPE = [
  { label: "APP", value: 1 },
  { label: "短信", value: 2 },
  { label: "电话", value: 3 },
  { label: "公众号", value: 4 }
];
export const WORKORDER_NOTICE_TYPETEXT = {
  1:{ label: "APP", value: 1 },
  2:{ label: "短信", value: 2 },
  3:{ label: "电话", value: 3 },
  4:{ label: "公众号", value: 4 }
};
export const ENABLE_STATUS_FORMCREATE = [
  { label: "启用", value: 1 },
  { label: "禁用", value: 2 }
];
export const ENABLE_STATUS_FORMCREATETEXT = {
  1: { label: "启用", value: 1 },
  2: { label: "禁用", value: 2 }
};
